import request from '@/utils/axios';


/**
 * 用户信息分页 API
 * @param params 分页参数
 * @returns Promise
 */
export interface PageVo {
  page: number;
  pageSize: number;
  name?: string;
}

export function UserInfoVoApi(params: PageVo) {
  return request({
    url: '/pageUser',
    method: 'get',
    params
  });
}
/**
 * 用户状态
 */
export interface UserUpdateVo{
  id:number,
  userStatus:number
}
export function UserStatusApi(params:UserUpdateVo){
  return request({
    url:'/updateUserStatus',
    method:'post',
    params,
  })
}
/**
 * 重置密码
 * @param id 
 * @returns 
 */
export function resetUserPasswordApi(id: number) {
  return request({
    url: '/resetUserPassword',
    method: 'put',
    params: { id }
  });
}